package dao

import (
	"time"
)

// 这是 LiPurchaseQuotedItem 的全局公开dao对象
var LiPurchaseQuotedItemDao = liPurchaseQuotedItemDao{}

// 这是 li_purchase_quoted_item表 的实体类
type LiPurchaseQuotedItem struct {
	Id               int       `json:"id" form:"id" v:"id"`                                                 // ID
	CreateTime       time.Time `json:"create_time" form:"create_time" v:"create_time"`                      // 创建时间
	PurchaseQuotedId string    `json:"purchase_quoted_id" form:"purchase_quoted_id" v:"purchase_quoted_id"` // 报价单ID
	GoodsName        string    `json:"goods_name" form:"goods_name" v:"goods_name"`                         // 商品名称
	GoodsUnit        string    `json:"goods_unit" form:"goods_unit" v:"goods_unit"`                         // 数量单位
	Num              string    `json:"num" form:"num" v:"num"`                                              // 数量
	Price            float64   `json:"price" form:"price" v:"price"`                                        // 价格
	Specs            string    `json:"specs" form:"specs" v:"specs"`                                        // 规格

}

// 注意:这是 LiPurchaseQuotedItem 的私有dao对象
type liPurchaseQuotedItemDao struct {
	Insert func(arg LiPurchaseQuotedItem) int                  //插入一条记录
	Update func(arg LiPurchaseQuotedItem) int                  //更新一条记录
	Delete func(arg LiPurchaseQuotedItem) int                  //删除一条记录
	Select func(arg LiPurchaseQuotedItem) LiPurchaseQuotedItem //获取一条记录
}
